import request from '@/utils/request'

// 查询链接待办事项列表
export function listLinkBacklog(query) {
  return request({
    url: '/business/linkBacklog/list',
    method: 'get',
    params: query
  })
}

// 查询链接待办事项详细
export function getLinkBacklog(id) {
  return request({
    url: '/business/linkBacklog/' + id,
    method: 'get'
  })
}

// 新增链接待办事项
export function addLinkBacklog(data) {
  return request({
    url: '/business/linkBacklog',
    method: 'post',
    data: data
  })
}

// 修改链接待办事项
export function updateLinkBacklog(data) {
  return request({
    url: '/business/linkBacklog',
    method: 'put',
    data: data
  })
}

// 删除链接待办事项
export function delLinkBacklog(id) {
  return request({
    url: '/business/linkBacklog/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/linkBacklog/export',
    method: 'post',
    data: data
  })
}

// 填写链接待办事项优化动作
export function editOptimizeActions(data) {
  return request({
    url: '/business/linkBacklog/editOptimizeActions',
    method: 'post',
    data: data
  })
}
